provider Organizations POST /api/0/organizations/{organization_id_or_slug}/members/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/members/
Add a Member to an Organization
Add or invite a member to an organization.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

addAMemberToAnOrganization
POST/api/0/organizations/{organization_id_or_slug}/members/
Add or invite a member to an organization.

Parameters

required

The ID or slug of the organization the resource belongs to.

Input

required

The email address to send the invitation to.

The organization-level role of the new member. Roles include: * `billing` - Can manage payment and compliance details. * `member` - Can view and act on events, as well as view most other data within the organization. * `manager` - Has full management access to all teams and projects. Can also manage the organization's membership. * `owner` - Has unrestricted access to the organization, its data, and its settings. Can add, modify, and delete projects and members, as well as make billing and plan changes. * `admin` - Can edit global integrations, manage projects, and add/remove teams. They automatically assume the Team Admin role for teams they join. Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead.

The team and team-roles assigned to the member. Team roles can be either: - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. - `admin` - Has full management access to their team's membership and projects.

Whether or not to send an invite notification through email. Defaults to True.

Whether or not to re-invite a user who has already been invited to the organization. Defaults to True.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.addAMemberToAnOrganization({
  "orgRole": "member",
  "sendInvite": true
})